<template>
  <div class="welcome">
    <el-table :data="tableData" style="width: 100%" >
      <el-table-column prop="username" label="登入账户" >
      </el-table-column>
      <el-table-column prop="lastLogin.ip" label="上次登入ip" >
      </el-table-column>
      <el-table-column prop="lastLogin.loginTime" label="上次登入时间" >
      </el-table-column>
      <el-table-column prop="nowLogin.ip" label="本次登入ip" >
      </el-table-column>
      <el-table-column prop="nowLogin.loginTime" label="本次登入时间" >
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
  import * as api  from "@/api/managehome";
  export default {
    meta:{
       title: 'glsy',
       name:"管理首页",
       icon:"iconfont icon-shouye1"
    },
    data() {
      return {
        tableData: []
      }
    },
    created(){
      api.Getmanagehome()
      .then(res=>{
        console.log(res.data.data)
        this.tableData=res.data.data
      })
    }
  }
</script>

<style lang="less" scoped>

</style>